package com.yuanfeng.biz.admin.admin.service;

import com.yuanfeng.biz.admin.admin.dao.AdminDao;
import com.yuanfeng.biz.admin.admin.dao.AdminDaoImpl;
import com.yuanfeng.entity.Admins;

public class AdminServiceImpl implements AdminService{
	private AdminDao dao = new AdminDaoImpl();
	public Admins login(String name) {
		return dao.queryByName(name);
	}
	public void registerAdmins(Admins admins) {
		dao.regsiterAdmins(admins);
	}
}
